function removeOne(id){
	layer.confirm("确定要删除菜单吗?",{icon: 4, title:'确认信息'},function(index){
		layer.close(index);
		var $form=$("<form>" );
		$form.attr( "style","display:none" ).attr( "target","").attr( "method","post" )
		.attr( "action", basepath + "/sys/menu/del");
        var $id=$("<input>" ).attr("type" ,"hidden" ).attr("name" ,"id" ).attr("value" ,id);
		$form.append($id);
		$("body").append($form);
		$form.submit();
	},function(index){
		layer.close(index);
	});
}
function stopit(id,state){
	var msg = state==0?"停用":"启用";
	layer.confirm("确定要"+msg+"菜单吗?",{icon: 4, title:'确认信息'},function(index){
		$.post(basepath+"/sys/menu/stopit",{id:id,status:state},function(data){
			if(data.status==200){
				layer.msg("菜单已"+msg+"！", function(){
					location.reload(true);
				});
			}
		}, "json");
	},function(index){
		layer.close(index);
	});
}